<div class="container">
    <div class="logo">
        <a href="{:url('admin/index/index')}">LiteAdmin v2</a>
    </div>
    <div class="left_open">
        <i title="展开左侧栏" class="iconfont">&#xe699;</i>
    </div>
    <ul class="layui-nav left fast-add" lay-filter="">
        <li class="layui-nav-item">
            <a href="javascript:;">系统操作</a>
            <dl class="layui-nav-child">
                <!-- 二级菜单 -->
                <dd>
                    <a data-post="{:url('admin/index/clearCache')}" data-confirm="确定要操作吗？"><i class="iconfont">&#xe6a2;</i>清理缓存</a>
                </dd>
            </dl>
        </li>
    </ul>
    <ul class="layui-nav right" lay-filter="">
        {empty name="Think.session.admin"}
        <li class="layui-nav-item">
            <a href="{:url('admin/login/login')}">登陆</a>
        </li>
        {else/}
        <li class="layui-nav-item">
            <a href="javascript:;">{$Think.session.admin.name}</a>
            <dl class="layui-nav-child"> <!-- 二级菜单 -->
                <dd><a data-modal='{:url("admin/index/editProfile",["id"=>session("admin.id")])}' data-area="80%,80%" data-title="修改个人信息">个人信息</a></dd>
                <dd><a data-modal='{:url("admin/index/password",["id"=>session("admin.id")])}' data-area="80%,80%" data-title="修改密码">更改密码</a></dd>
                <dd><a href="{:url('admin/login/logout')}">退出</a></dd>
            </dl>
        </li>
        {/empty}
        <li class="layui-nav-item to-index">
            <a href="{:url('index/index/index')}" target="_blank">前台首页</a>
        </li>
    </ul>
</div>